package mini_v340

import io.gatling.core.Predef._
import io.gatling.core.structure.ChainBuilder
import io.gatling.http.Predef._
import conf._
/**
  * Created by chenbo on 2018/9/18.
  */
object Product {

  def product_detail:ChainBuilder={

    val data:Map[String,Any]=Map(
      "basicSysNo"->"${basic}",
      "basicSysNo"->1,
      "productSysNo"->"${productSysNo}",
      "areaSysNo"->Apply.apply.area
    )

    exec(
      Request.get(Config.product,data).check(jsonPath("$.msg").is("success"))
        .check(jsonPath("$..productBasicSysNo").is("${basic}"))
    )
  }
}
